
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
    <?php echo $title ?>
    </title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>
<!-- <form  name="login" action="index.php?c=Users&a=home" method="post"> -->
<!-- 用户名 : <input type="text" name="username"><br> -->
<!-- 密码:    <input type="password" name="password"><br> -->
<!-- 权限验证:<input type="password" name="admin"> -->
<!-- <p> -->
<?php
//  echo($error)
  ?>  
<!-- </p> -->
<!-- <input type="submit" value="登录"> -->

<!-- </form> -->
<!-- <a href ="index.php?c=Users&a=register">注册</a><br> -->





<div class="container" style="margin-top: 100px">
<div class="row">
<div class="col"></div>
<div class="col">
  <h2> <?php echo $title ?> </h2>
  <form  name="login" action="index.php?c=Users&a=home" method="post">
    <div class="form-group">
    <label for="username">用户名 : </label>
      <input type="text" class="form-control" id="username" name="username" placeholder="填写用户名">
    </div>
    <div class="form-group">
      <label for="password">密码:</label>
      <input type="password" class="form-control" id="password" name="password" placeholder="输入密码">
    </div>
    <button type="submit" class="btn btn-primary btn-block" >登录</button>
    <a href ="index.php?c=Users&a=register" class="btn btn-primary btn-block">注册</a><br>
  </form>
  <div id = 'error'  class="alert alert-danger"  style="
  <?php
  if ($error === "") {
    echo("display : none");
  }
  ?>" >
    <strong><?php echo($error)
 ?></strong> 
  </div>
  </div>
  <div class="col"></div>
  </div >
</div>
</body>
</html>




<style>
/* a:link,a:visited
{
	display:block;
	font-weight:bold;
	color:#FFFFFF;
	background-color:blue;
	width:120px;
	text-align:center;
	padding:4px;
	text-decoration:none;
}
a:hover,a:active
{
	background-color:#7A991A;
} */
</style>